colorswatch: Simplify drawing code
authorBenjamin Otte <otte@redhat.com>
Tue, 7 Oct 2014 03:58:09 +0000 (05:58 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 8 Oct 2014 03:20:30 +0000 (05:20 +0200)
commitbe19ee29c28d3c692d95b18d415bb554bd806b99
tree7e35be8b0f2a6efa4ad9ce3358a5a3c7be633811
parent3897041f4a6707372da64bc9c6ef52449cb2d14c
colorswatch: Simplify drawing code

This adds a CSS box (complete with padding and border) for the icon. The
box is even drawn when no icon is present. Use the ".image" as the style
class here instead of -active-color-badge.

Use this box to draw the circle around the selection icon in Adwaita.
gtk/gtkcolorswatch.c
gtk/resources/theme/Adwaita/_common.scss
gtk/resources/theme/Adwaita/gtk-contained-dark.css
gtk/resources/theme/Adwaita/gtk-contained.css